import request from '@/utils/request'

// 查询出库单头列表
export function listHeader(data) {
  return request({
    url: '/api/outbound/queryHeader',
    method: 'post',
    data: data
  })
}

// 查询出库单头详细
export function getHeader(outboundOrderCode) {
  return request({
    url: '/api/outbound/' + outboundOrderCode,
    method: 'get'
  })
}

// 新增出库单头
export function addHeader(data) {
  return request({
    url: '/api/outbound',
    method: 'post',
    data: data
  })
}

// 修改出库单头
export function updateHeader(data) {
  return request({
    url: '/api/outbound',
    method: 'put',
    data: data
  })
}

// 删除出库单头
export function delHeader(outboundOrderCode) {
  return request({
    url: '/api/outbound/' + outboundOrderCode,
    method: 'delete'
  })
}
